{
  "info": {
    "_postman_id": "5b6c8c24-23a3-4bba-897b-c4392c4ba420",
    "name": "Протокол 1.4 Обязательные медицинские осмотры",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "37937048"
  },
  "item": [
    {
      "name": "предварительные условия",
      "item": [
        {
          "name": "импорт пакета медицинской информации",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                  "    pm.response.to.have.status(202);\r",
                  "});\r",
                  "\r",
                  "var jsonData = pm.response.json();\r",
                  "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                  "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                  "\r",
                  "console.log(statusReference.valueReference.reference);\r",
                  "\r",
                  "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                  "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            },
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  "// const iehrTools = pm.require('@grey-escape-331258/iehr-tools');\r",
                  "\r",
                  "// var requestdata = JSON.parse(pm.request.body.raw);\r",
                  "// let patient = requestdata.entry.find(obj => obj.resource.resourceType === \"Patient\").resource;\r",
                  "// let composition = requestdata.entry.filter(obj => obj.resource.resourceType === \"Composition\")[0].resource;\r",
                  "\r",
                  "// let actualDate = new Date(Date.parse(composition.date.substr(0, 7)));\r",
                  "// let actualDateStart = iehrTools.addMonth(actualDate, -1);\r",
                  "// let actualDateEnd = iehrTools.addMonth(actualDate, 1);\r",
                  "\r",
                  "// pm.collectionVariables.set(\"actualDateStart\", actualDateStart.toISOString().substring(0,7));\r",
                  "// pm.collectionVariables.set(\"actualDateEnd\", actualDateEnd.toISOString().substring(0,7));\r",
                  "// pm.collectionVariables.set(\"actualDate\", actualDate.toISOString().substring(0,10));\r",
                  "// // --- Patient ----\r",
                  "// let patientName = patient.name[0].family;\r",
                  "// let patientDate = patient.birthDate;\r",
                  "// let patientAddress = patient.address[0];\r",
                  "// let patientIdentifier = patient.identifier[0];\r",
                  "\r",
                  "// console.log(pm.request.auth)\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Fhir-By-Version",
                "value": "active",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"ExampleBundleForDemo\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-07-22T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompDocumentForDemo\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient1\",\r\n                        \"display\": \"Ивийич\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Фч\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"pa-a8fea7ba-c477-11f0-a1a9-c890c671c345\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"version\": \"1.284\",\r\n                                    \"code\": \"INP\",\r\n                                    \"display\": \"Уникальный идентификационный номер\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551123A009PB1\"\r\n                    }\r\n                   \r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Иванов\",\r\n                        \"given\": [\r\n                            \"Петр\",\r\n                            \"Сидорович\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.39\",\r\n                                                    \"code\": \"SMS\",\r\n                                                    \"display\": \"SMS\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.39\",\r\n                                                    \"code\": \"messenger-tel\",\r\n                                                    \"display\": \"Telegram\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.39\",\r\n                                                    \"code\": \"e-mail\",\r\n                                                    \"display\": \"e-mail\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\"\r\n                            }\r\n                        ],\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"295748410\"\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"test_mail@gmail.by\"\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1990-12-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"version\": \"1.51\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"version\": \"1.109\",\r\n                                            \"code\": \"5170309411\",\r\n                                            \"display\": \"Улица Золотая Горка\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 29\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"г. Минск, Проспект Рокоссовского\",\r\n                        \"line\": [\r\n                            \"Проспект Рокоссовского\"\r\n                        ],\r\n                        \"city\": \"г. Минск\",\r\n                        \"state\": \"г. Минск\",\r\n                        \"country\": \"Беларусь\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"version\": \"1.51\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"version\": \"1.109\",\r\n                                            \"code\": \"51703019678\",\r\n                                            \"display\": \"Проспект Рокоссовского\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 2\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"г. Минск, Проспект Рокоссовского\",\r\n                        \"line\": [\r\n                            \"Проспект Рокоссовского\"\r\n                        ],\r\n                        \"city\": \"г. Минск\",\r\n                        \"state\": \"г. Минск\",\r\n                        \"country\": \"Беларусь\"\r\n                    }\r\n                ],\r\n                \"maritalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/MaritalStatus\",\r\n                            \"version\": \"1.1\",\r\n                            \"code\": \"married\",\r\n                            \"display\": \"женат/замужем\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"contact\": [\r\n                    {\r\n                        \"relationship\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/RelatedPersonType\",\r\n                                        \"version\": \"1.78\",\r\n                                        \"code\": \"wife\",\r\n                                        \"display\": \"супруга\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ],\r\n                        \"name\": {\r\n                            \"family\": \"Иванова\",\r\n                            \"given\": [\r\n                                \"Лариса\",\r\n                                \"Ивановна\"\r\n                            ]\r\n                        },\r\n                        \"telecom\": [\r\n                            {\r\n                                \"system\": \"phone\",\r\n                                \"value\": \"802990990908\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"generalPractitioner\": [\r\n                    {\r\n                        \"reference\": \"Organization/97e05a7d-b923-4b34-bf76-e4b19e248f83\",\r\n                        \"identifier\": {\r\n                            \"value\": \"123156789012\",\r\n                            \"period\": {\r\n                                \"start\": \"2002-12-11\"\r\n                            }\r\n                        },\r\n                        \"display\": \"Учреждение здравоохранения \\\"Бобруйская городская поликлиника № 1\\\"\"\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "$import"
              ]
            }
          },
          "response": []
        },
        {
          "name": "получение статуса импорта пакета медицинской информации",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "{{bundleId}}",
                "$status"
              ]
            }
          },
          "response": []
        },
        {
          "name": "поиск пациента по идентификационному номеру",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = pm.response.json();\r",
                  "let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
                  "\r",
                  "pm.collectionVariables.set(\"patientId\", patientId);\r",
                  "console.log(patientId)\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient?identifier=7551123A009PB1",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Patient"
              ],
              "query": [
                {
                  "key": "identifier",
                  "value": "7551123A009PB1"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Кейс 1. Направление на медицинский осмотр работающего",
      "item": [
        {
          "name": "Проверка отсутствия направления на медицинский осмотр",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/ServiceRequest?_profile=https://fhir.by/StructureDefinition/ServiceRequestMedExam&_sort=-_lastUpdated",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Patient",
                "{{patientId}}",
                "ServiceRequest"
              ],
              "query": [
                {
                  "key": "_profile",
                  "value": "https://fhir.by/StructureDefinition/ServiceRequestMedExam"
                },
                {
                  "key": "_sort",
                  "value": "-_lastUpdated"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "импорт пакета медицинской информации",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                  "    pm.response.to.have.status(202);\r",
                  "});\r",
                  "\r",
                  "var jsonData = pm.response.json();\r",
                  "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                  "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                  "\r",
                  "console.log(statusReference.valueReference.reference);\r",
                  "\r",
                  "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                  "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            },
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  "// const iehrTools = pm.require('@grey-escape-331258/iehr-tools');\r",
                  "\r",
                  "// var requestdata = JSON.parse(pm.request.body.raw);\r",
                  "// let patient = requestdata.entry.find(obj => obj.resource.resourceType === \"Patient\").resource;\r",
                  "// let composition = requestdata.entry.filter(obj => obj.resource.resourceType === \"Composition\")[0].resource;\r",
                  "\r",
                  "// let actualDate = new Date(Date.parse(composition.date.substr(0, 7)));\r",
                  "// let actualDateStart = iehrTools.addMonth(actualDate, -1);\r",
                  "// let actualDateEnd = iehrTools.addMonth(actualDate, 1);\r",
                  "\r",
                  "// pm.collectionVariables.set(\"actualDateStart\", actualDateStart.toISOString().substring(0,7));\r",
                  "// pm.collectionVariables.set(\"actualDateEnd\", actualDateEnd.toISOString().substring(0,7));\r",
                  "// pm.collectionVariables.set(\"actualDate\", actualDate.toISOString().substring(0,10));\r",
                  "// // --- Patient ----\r",
                  "// let patientName = patient.name[0].family;\r",
                  "// let patientDate = patient.birthDate;\r",
                  "// let patientAddress = patient.address[0];\r",
                  "// let patientIdentifier = patient.identifier[0];\r",
                  "\r",
                  "// console.log(pm.request.auth)\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Fhir-By-Version",
                "value": "active",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"ExampleBundleMedExamTest\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2025-12-10T14:00:00Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionMedExamTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"CompositionMedExamTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\",\r\n                            \"display\": \"Общая медицинская информация\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/PatientTest\"\r\n                    }\r\n                ],\r\n                \"date\": \"2025-12-10T14:00:00Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                    }\r\n                ],\r\n                \"title\": \"CompDocument для наполненного Bundle для направления на обязательный медицинский осмотр работающего\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"event\": [\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"ServiceRequest/ExampleSRMedExamTest\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/PatientTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"pa-ada93c9e-faae-11f0-81b0-c9c61aea94ed\",\r\n                \"meta\": {\r\n                    \r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"version\": \"1.322\",\r\n                                    \"code\": \"INP\",\r\n                                    \"display\": \"Уникальный идентификационный номер\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551123A009PB1\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Иванов\",\r\n                        \"given\": [\r\n                            \"Петр\",\r\n                            \"Сидорович\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.1\",\r\n                                                    \"code\": \"SMS\",\r\n                                                    \"display\": \"SMS\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.1\",\r\n                                                    \"code\": \"messenger-tel\",\r\n                                                    \"display\": \"Telegram\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.1\",\r\n                                                    \"code\": \"e-mail\",\r\n                                                    \"display\": \"e-mail\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\"\r\n                            }\r\n                        ],\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"295748410\"\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"test_mail@gmail.by\"\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1990-12-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"version\": \"1.89\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"version\": \"1.109\",\r\n                                            \"code\": \"5170309411\",\r\n                                            \"display\": \"Улица Золотая Горка\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 29\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"г. Минск, Улица Золотая Горка\",\r\n                        \"line\": [\r\n                            \"Улица Золотая Горка\"\r\n                        ],\r\n                        \"city\": \"г. Минск\",\r\n                        \"state\": \"г. Минск\",\r\n                        \"country\": \"Беларусь\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"version\": \"1.89\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"version\": \"1.109\",\r\n                                            \"code\": \"51703019678\",\r\n                                            \"display\": \"Проспект Рокоссовского\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 2\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"г. Минск, Проспект Рокоссовского\",\r\n                        \"line\": [\r\n                            \"Проспект Рокоссовского\"\r\n                        ],\r\n                        \"city\": \"г. Минск\",\r\n                        \"state\": \"г. Минск\",\r\n                        \"country\": \"Беларусь\"\r\n                    }\r\n                ],\r\n                \"maritalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/MaritalStatus\",\r\n                            \"version\": \"1.1\",\r\n                            \"code\": \"married\",\r\n                            \"display\": \"женат/замужем\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"contact\": [\r\n                    {\r\n                        \"relationship\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/RelatedPersonType\",\r\n                                        \"version\": \"1.78\",\r\n                                        \"code\": \"wife\",\r\n                                        \"display\": \"супруга\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ],\r\n                        \"name\": {\r\n                            \"family\": \"Иванова\",\r\n                            \"given\": [\r\n                                \"Лариса\",\r\n                                \"Ивановна\"\r\n                            ]\r\n                        },\r\n                        \"telecom\": [\r\n                            {\r\n                                \"system\": \"phone\",\r\n                                \"value\": \"802990990908\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"generalPractitioner\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\",\r\n                        \"identifier\": {\r\n                            \"value\": \"123156789012\",\r\n                            \"period\": {\r\n                                \"start\": \"2002-12-11\"\r\n                            }\r\n                        },\r\n                        \"display\": \"Учреждение здравоохранения \\\"Бобруйская городская поликлиника № 1\\\"\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"ServiceRequest/ExampleSRMedExamTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"ServiceRequest\",\r\n                \"id\": \"ExampleSRMedExamTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ServiceRequestMedExam\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/RequestFromOrganization\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/SpecialtyCode\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/ServiceSpecialtyBy\",\r\n                                    \"code\": \"C039\",\r\n                                    \"display\": \"Профилактические осмотры\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HarmfulFactors\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/HarmfulFactors\",\r\n                                            \"code\": \"1.1.39\",\r\n                                            \"display\": \"амино- и нитросоединения алифатических, ациклических углеводородов и их производные (метиламин, этиленимин, гексаметилендиамин, циклогексиламин и другие)\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HarmfulFactors\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/HarmfulFactors\",\r\n                                            \"code\": \"1.1.32\",\r\n                                            \"display\": \"амино- и нитросоединения ароматических углеводородов и их производные: аминобензол (анилин) (К), м-, п-толуидин, N-метиламинобензол (метил-аланин), аминонитро-бензолы; нитрохлорбензолы, нитро-, аминофенолы, 2-метил-1,3,5-тринитробензол (тринитротолуол), диамино-бензолы (фенилендиамины), 1-амино-3-хлорбензолол, 1-амино-4-хлорбензол (хлоранилины), аминодиметилбензол (ксилидин), анизидины, бензидин (К), нафтиламины\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/FactorsAndTypesOfWork\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"2200524\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"intent\": \"directive\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/HealthcareServiceCategory\",\r\n                                \"code\": \"06\",\r\n                                \"display\": \"Медицинская экспертиза, освидетельствования и осмотры\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": \"routine\",\r\n                \"code\": {\r\n                    \"concept\": {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/MedicalExaminationEmployees\",\r\n                                \"code\": \"mandatory-periodic\",\r\n                                \"display\": \"обязательный периодический\"\r\n                            }\r\n                        ]\r\n                    }\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"occurrenceDateTime\": \"2025-08-10\",\r\n                \"authoredOn\": \"2025-06-10\",\r\n                \"requester\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                },\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\"\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "$import"
              ]
            }
          },
          "response": []
        },
        {
          "name": "получение статуса импорта пакета медицинской информации",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "{{bundleId}}",
                "$status"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Проверка наличия направления на медицинский осмотр",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = pm.response.json();\r",
                  "let serviceRequestId = jsonData.entry.find(obj => obj.resource.resourceType === \"ServiceRequest\").resource.id;\r",
                  "\r",
                  "pm.collectionVariables.set(\"serviceRequestId\", serviceRequestId);"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/ServiceRequest?_profile=https://fhir.by/StructureDefinition/ServiceRequestMedExam&_sort=-_lastUpdated&identifier=2200524",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Patient",
                "{{patientId}}",
                "ServiceRequest"
              ],
              "query": [
                {
                  "key": "_profile",
                  "value": "https://fhir.by/StructureDefinition/ServiceRequestMedExam"
                },
                {
                  "key": "_sort",
                  "value": "-_lastUpdated"
                },
                {
                  "key": "identifier",
                  "value": "2200524"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Кейс 2. Решение комиссии о состоянии здоровья работающего после проведения медицинского осмотра",
      "item": [
        {
          "name": "импорт пакета медицинской информации",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                  "    pm.response.to.have.status(202);\r",
                  "});\r",
                  "\r",
                  "var jsonData = pm.response.json();\r",
                  "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                  "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                  "\r",
                  "console.log(statusReference.valueReference.reference);\r",
                  "\r",
                  "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                  "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            },
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  "// const iehrTools = pm.require('@grey-escape-331258/iehr-tools');\r",
                  "\r",
                  "// var requestdata = JSON.parse(pm.request.body.raw);\r",
                  "// let patient = requestdata.entry.find(obj => obj.resource.resourceType === \"Patient\").resource;\r",
                  "// let composition = requestdata.entry.filter(obj => obj.resource.resourceType === \"Composition\")[0].resource;\r",
                  "\r",
                  "// let actualDate = new Date(Date.parse(composition.date.substr(0, 7)));\r",
                  "// let actualDateStart = iehrTools.addMonth(actualDate, -1);\r",
                  "// let actualDateEnd = iehrTools.addMonth(actualDate, 1);\r",
                  "\r",
                  "// pm.collectionVariables.set(\"actualDateStart\", actualDateStart.toISOString().substring(0,7));\r",
                  "// pm.collectionVariables.set(\"actualDateEnd\", actualDateEnd.toISOString().substring(0,7));\r",
                  "// pm.collectionVariables.set(\"actualDate\", actualDate.toISOString().substring(0,10));\r",
                  "// // --- Patient ----\r",
                  "// let patientName = patient.name[0].family;\r",
                  "// let patientDate = patient.birthDate;\r",
                  "// let patientAddress = patient.address[0];\r",
                  "// let patientIdentifier = patient.identifier[0];\r",
                  "\r",
                  "// console.log(pm.request.auth)\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Fhir-By-Version",
                "value": "active",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"ExampleBundleMedExamDecisionTest\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2025-12-10T14:00:00Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionMedExamDecisionTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"CompositionMedExamDecisionTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\",\r\n                            \"display\": \"Общая медицинская информация\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/PatientTest\"\r\n                    }\r\n                ],\r\n                \"date\": \"2025-12-10T14:00:00Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                    }\r\n                ],\r\n                \"title\": \"CompDocument для наполненного Bundle для направления на обязательный медицинский осмотр работающего\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"event\": [\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"CarePlan/ExampleMedExaminReportTest\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"ClinicalImpression/ExampleMedExamDecisionTest\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Encounter/EncounterTest\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisHealthy\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/ExampleObservationUSDTest\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"DiagnosticReport/ExampleDiagnosticReportObsDR\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EncounterConclusion\",\r\n                        \"valueString\": \"проведение медицинского осмотра\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EncounterTypeOfVisit\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/EncounterTypeOfVisit\",\r\n                                    \"code\": \"primary\",\r\n                                    \"display\": \"первичное обращение\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EncounterTypeOfService\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/EncounterTypeOfService\",\r\n                                    \"code\": \"free\",\r\n                                    \"display\": \"Бесплатные услуги\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"1\",\r\n                                \"display\": \"амбулаторные\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"planned\",\r\n                            \"display\": \"Плановая медицинская помощь\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"primary\",\r\n                                \"display\": \"Первичная медицинская помощь\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2025-06-10T11:12:21Z\",\r\n                    \"end\": \"2025-06-10T11:25:21Z\"\r\n                },\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/EncounterReasons\",\r\n                                        \"code\": \"medical-examination\",\r\n                                        \"display\": \"Медицинский осмотр\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisHealthy\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/ExampleDiagnosisHealthy\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"ExampleDiagnosisHealthy\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2025-06-10\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"Z00.0\",\r\n                            \"display\": \"Z00.0 - Общий медицинский осмотр\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"onsetDateTime\": \"2024-01-05\",\r\n                \"recordedDate\": \"2024-01-05\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/PatientTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"PatientTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"version\": \"1.322\",\r\n                                    \"code\": \"INP\",\r\n                                    \"display\": \"Уникальный идентификационный номер\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551123A009PB1\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Иванов\",\r\n                        \"given\": [\r\n                            \"Петр\",\r\n                            \"Сидорович\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.1\",\r\n                                                    \"code\": \"SMS\",\r\n                                                    \"display\": \"SMS\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.1\",\r\n                                                    \"code\": \"messenger-tel\",\r\n                                                    \"display\": \"Telegram\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.1\",\r\n                                                    \"code\": \"e-mail\",\r\n                                                    \"display\": \"e-mail\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\"\r\n                            }\r\n                        ],\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"295748410\"\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"test_mail@gmail.by\"\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1990-12-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"version\": \"1.89\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"version\": \"1.109\",\r\n                                            \"code\": \"5170309411\",\r\n                                            \"display\": \"Улица Золотая Горка\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 29\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"г. Минск, Улица Золотая Горка\",\r\n                        \"line\": [\r\n                            \"Улица Золотая Горка\"\r\n                        ],\r\n                        \"city\": \"г. Минск\",\r\n                        \"state\": \"г. Минск\",\r\n                        \"country\": \"Беларусь\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"version\": \"1.89\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"version\": \"1.109\",\r\n                                            \"code\": \"51703019678\",\r\n                                            \"display\": \"Проспект Рокоссовского\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 2\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"г. Минск, Проспект Рокоссовского\",\r\n                        \"line\": [\r\n                            \"Проспект Рокоссовского\"\r\n                        ],\r\n                        \"city\": \"г. Минск\",\r\n                        \"state\": \"г. Минск\",\r\n                        \"country\": \"Беларусь\"\r\n                    }\r\n                ],\r\n                \"maritalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/MaritalStatus\",\r\n                            \"version\": \"1.1\",\r\n                            \"code\": \"married\",\r\n                            \"display\": \"женат/замужем\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"contact\": [\r\n                    {\r\n                        \"relationship\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/RelatedPersonType\",\r\n                                        \"version\": \"1.78\",\r\n                                        \"code\": \"wife\",\r\n                                        \"display\": \"супруга\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ],\r\n                        \"name\": {\r\n                            \"family\": \"Иванова\",\r\n                            \"given\": [\r\n                                \"Лариса\",\r\n                                \"Ивановна\"\r\n                            ]\r\n                        },\r\n                        \"telecom\": [\r\n                            {\r\n                                \"system\": \"phone\",\r\n                                \"value\": \"802990990908\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"generalPractitioner\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\",\r\n                        \"identifier\": {\r\n                            \"value\": \"123156789012\",\r\n                            \"period\": {\r\n                                \"start\": \"2002-12-11\"\r\n                            }\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"CarePlan/ExampleMedExaminReportTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"CarePlan\",\r\n                \"id\": \"ExampleMedExaminReportTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/MedExaminReport\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HarmfulFactors\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/HarmfulFactors\",\r\n                                            \"code\": \"1.1.1\",\r\n                                            \"display\": \"азота неорганические соединения (аммиак, азотная кислота и другие)\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TypesOfWork\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/TypesOfWork\",\r\n                                            \"code\": \"6\",\r\n                                            \"display\": \"Работы в нефтяной и газовой промышленности, производство геолого-разведческих и топографо-геодезических работ\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/FactorsAndTypesOfWork\"\r\n                    }\r\n                ],\r\n                \"basedOn\": [\r\n                    {\r\n                        \"reference\": \"ServiceRequest/{{serviceRequestId}}\"\r\n                    }\r\n                ],\r\n                \"status\": \"completed\",\r\n                \"intent\": \"plan\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/MedicalExaminationEmployees\",\r\n                                \"code\": \"mandatory-periodic\"\r\n                                \r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"title\": \"Протокол медицинского осмотра (предварительного, периодического или внеочередного) работающих\",\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"encounter\": {\r\n                    \"reference\": \"Encounter/EncounterTest\"\r\n                },\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"contributor\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"addresses\": [\r\n                    {\r\n                        \"reference\": {\r\n                            \"reference\": \"Condition/ExampleDiagnosisHealthy\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"supportingInfo\": [\r\n                    {\r\n                        \"reference\": \"ClinicalImpression/ExampleMedExamDecisionTest\"\r\n                    }\r\n                ],\r\n                \"activity\": [\r\n                    {\r\n                        \"performedActivity\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"DiagnosticReport/ExampleDiagnosticReportObsDR\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"ClinicalImpression/ExampleMedExamDecisionTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"ClinicalImpression\",\r\n                \"id\": \"ExampleMedExamDecisionTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/MedicalExaminDecision\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/MedicalExaminationEmployees\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicalExaminationEmployees\",\r\n                                    \"code\": \"mandatory-preliminary\",\r\n                                    \"display\": \"обязательный предварительный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"23456\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"completed\",\r\n                \"description\": \"Решение комиссии о состоянии здоровья при проведении обязательного периодического осмотра Иванова Ивана, 31.12.1990 года рождения\",\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2026-06-10\",\r\n                \"date\": \"2025-06-10\",\r\n                \"performer\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                },\r\n                \"finding\": [\r\n                    {\r\n                        \"item\": {\r\n                            \"extension\": [\r\n                                {\r\n                                    \"extension\": [\r\n                                        {\r\n                                            \"url\": \"https://fhir.by/StructureDefinition/HarmfulFactors\",\r\n                                            \"valueCodeableConcept\": {\r\n                                                \"coding\": [\r\n                                                    {\r\n                                                        \"system\": \"https://fhir.by/ValueSet/HarmfulFactors\",\r\n                                                        \"code\": \"1.1.39\",\r\n                                                        \"display\": \"амино- и нитросоединения алифатических, ациклических углеводородов и их производные (метиламин, этиленимин, гексаметилендиамин, циклогексиламин и другие)\"\r\n                                                    }\r\n                                                ]\r\n                                            }\r\n                                        }\r\n                                    ],\r\n                                    \"url\": \"https://fhir.by/StructureDefinition/FactorsAndTypesOfWork\"\r\n                                }\r\n                            ],\r\n                            \"concept\": {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/MedicalExaminationDecision\",\r\n                                        \"code\": \"fit\",\r\n                                        \"display\": \"Годен к работе\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"item\": {\r\n                            \"extension\": [\r\n                                {\r\n                                    \"extension\": [\r\n                                        {\r\n                                            \"url\": \"https://fhir.by/StructureDefinition/HarmfulFactors\",\r\n                                            \"valueCodeableConcept\": {\r\n                                                \"coding\": [\r\n                                                    {\r\n                                                        \"system\": \"https://fhir.by/ValueSet/HarmfulFactors\",\r\n                                                        \"code\": \"1.1.32\",\r\n                                                        \"display\": \"амино- и нитросоединения ароматических углеводородов и их производные: аминобензол (анилин) (К), м-, п-толуидин, N-метиламинобензол (метил-аланин), аминонитро-бензолы; нитрохлорбензолы, нитро-, аминофенолы, 2-метил-1,3,5-тринитробензол (тринитротолуол), диамино-бензолы (фенилендиамины), 1-амино-3-хлорбензолол, 1-амино-4-хлорбензол (хлоранилины), аминодиметилбензол (ксилидин), анизидины, бензидин (К), нафтиламины\"\r\n                                                    }\r\n                                                ]\r\n                                            }\r\n                                        }\r\n                                    ],\r\n                                    \"url\": \"https://fhir.by/StructureDefinition/FactorsAndTypesOfWork\"\r\n                                }\r\n                            ],\r\n                            \"concept\": {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/MedicalExaminationDecision\",\r\n                                        \"code\": \"unfit-health-condition\",\r\n                                        \"display\": \"Не годен по состоянию здоровья\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"DiagnosticReport/ExampleDiagnosticReportObsDR\",\r\n            \"resource\": {\r\n                \"resourceType\": \"DiagnosticReport\",\r\n                \"id\": \"ExampleDiagnosticReportObsDR\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/UltrasoundDiagnosticReport\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/LocationReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Location/{{LocationId}}\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ExaminationPriority\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/ExaminationPriority\",\r\n                                    \"code\": \"routine\",\r\n                                    \"display\": \"планово\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"43664362\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/HealthcareServiceCategory\",\r\n                                \"code\": \"06/1-add\",\r\n                                \"display\": \"Медицинская экспертиза, освидетельствования и осмотры взрослого населения\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/UltrasoundTypes\",\r\n                            \"code\": \"A04-28-001\",\r\n                            \"display\": \"УЗИ почек\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"encounter\": {\r\n                    \"reference\": \"Encounter/EncounterTest\"\r\n                },\r\n                \"effectivePeriod\": {\r\n                    \"start\": \"2025-05-12T12:05:00Z\",\r\n                    \"end\": \"2025-05-12T12:15:00Z\"\r\n                },\r\n                \"issued\": \"2025-05-12T12:30:00Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\"\r\n                    }\r\n                ],\r\n                \"resultsInterpreter\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"result\": [\r\n                    {\r\n                        \"reference\": \"Observation/ExampleObservationUSDTest\"\r\n                    }\r\n                ],\r\n                \"conclusion\": \"норма\"\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/ExampleObservationUSDTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"ExampleObservationUSDTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ObservationUltrasound\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/LocationReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Location/{{LocationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"43664362\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/HealthcareServiceCategory\",\r\n                                \"code\": \"06/1-add\",\r\n                                \"display\": \"Медицинская экспертиза, освидетельствования и осмотры взрослого населения\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/UltrasoundTypes\",\r\n                            \"code\": \"A04-28-001\",\r\n                            \"display\": \"УЗИ почек\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"encounter\": {\r\n                    \"reference\": \"Encounter/EncounterTest\"\r\n                },\r\n                \"effectivePeriod\": {\r\n                    \"start\": \"2025-05-12T12:05:00Z\",\r\n                    \"end\": \"2025-05-12T12:15:00Z\"\r\n                },\r\n                \"issued\": \"2025-05-12T12:20:00Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformerTypeObservation\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/PerformerType\",\r\n                                            \"code\": \"organization-per\",\r\n                                            \"display\": \"организация\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"reference\": \"Organization/{{OrganizationId}}\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformerTypeObservation\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/PerformerType\",\r\n                                            \"code\": \"practitionerRole-per\",\r\n                                            \"display\": \"роль медработника\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"component\": [\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-location\",\r\n                                    \"display\": \"Расположение правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Обычное\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-borders\",\r\n                                    \"display\": \"Контуры правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Ровные, четкие\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-length\",\r\n                                    \"display\": \"Длина правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 105,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-thickness\",\r\n                                    \"display\": \"Толщина правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 45,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-width\",\r\n                                    \"display\": \"Ширина правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 52,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-parenchyma-width\",\r\n                                    \"display\": \"Толщина паренхимы правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 18,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-parenchyma-echogenicity\",\r\n                                    \"display\": \"Эхогенность паренхимы правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltraSoundQualitativeParameters\",\r\n                                    \"code\": \"normal\",\r\n                                    \"display\": \"Норма\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-parenchyma-structure\",\r\n                                    \"display\": \"Структура паренхимы правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltraSoundQualitativeParameters\",\r\n                                    \"code\": \"homogeneous\",\r\n                                    \"display\": \"Однородная\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-pelvicalyceal-system\",\r\n                                    \"display\": \"Чашечно-лоханочная система правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Не расширена\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-lesions\",\r\n                                    \"display\": \"Очаговые образования (правая почка)\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueBoolean\": false\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-stones\",\r\n                                    \"display\": \"Конкременты (правая почка)\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueBoolean\": false\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-location\",\r\n                                    \"display\": \"Расположение левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Обычное\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-borders\",\r\n                                    \"display\": \"Контуры левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Ровные, четкие\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-length\",\r\n                                    \"display\": \"Длина левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 108,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-width\",\r\n                                    \"display\": \"Толщина левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 42,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-width\",\r\n                                    \"display\": \"Ширина левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 49,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-parenchyma-width\",\r\n                                    \"display\": \"Толщина паренхимы левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 22,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-parenchyma-echogenicity\",\r\n                                    \"display\": \"Эхогенность паренхимы левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltraSoundQualitativeParameters\",\r\n                                    \"code\": \"normal\",\r\n                                    \"display\": \"Норма\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-parenchyma-structure\",\r\n                                    \"display\": \"Структура паренхимы левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltraSoundQualitativeParameters\",\r\n                                    \"code\": \"homogeneous\",\r\n                                    \"display\": \"Однородная\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-pelvicalyceal-system\",\r\n                                    \"display\": \"Чашечно-лоханочная система левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Не расширена\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-lesions\",\r\n                                    \"display\": \"Очаговые образования (левая почка)\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueBoolean\": false\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-stones\",\r\n                                    \"display\": \"Конкременты (левая почка)\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueBoolean\": false\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"additional-info\",\r\n                                    \"display\": \"Дополнительная информация\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"норма\"\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "$import"
              ]
            }
          },
          "response": []
        },
        {
          "name": "получение статуса импорта пакета медицинской информации",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "{{bundleId}}",
                "$status"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Метод проверки наличия решений комиссии о состоянии здоровья работающего",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = pm.response.json();\r",
                  "let clinicalImpressionId = jsonData.entry.find(obj => obj.resource.resourceType === \"ClinicalImpression\").resource.id;\r",
                  "\r",
                  "pm.collectionVariables.set(\"clinicalImpressionId\", clinicalImpressionId);\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/ClinicalImpression?_profile=https://fhir.by/StructureDefinition/MedicalExaminDecision&_sort=-_lastUpdated",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Patient",
                "{{patientId}}",
                "ClinicalImpression"
              ],
              "query": [
                {
                  "key": "_profile",
                  "value": "https://fhir.by/StructureDefinition/MedicalExaminDecision"
                },
                {
                  "key": "_sort",
                  "value": "-_lastUpdated"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Метод проверки наличия протоколов медицинского осмотра",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = pm.response.json();\r",
                  "let carePlanId = jsonData.entry.find(obj => obj.resource.resourceType === \"CarePlan\").resource.id;\r",
                  "\r",
                  "pm.collectionVariables.set(\"carePlanId\", carePlanId);\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/CarePlan?_profile=https://fhir.by/StructureDefinition/MedExaminReport&_sort=-_lastUpdated",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Patient",
                "{{patientId}}",
                "CarePlan"
              ],
              "query": [
                {
                  "key": "_profile",
                  "value": "https://fhir.by/StructureDefinition/MedExaminReport"
                },
                {
                  "key": "_sort",
                  "value": "-_lastUpdated"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Проверка изменения статуса направления на completed",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = pm.response.json();\r",
                  "let serviceRequestId = jsonData.entry.find(obj => obj.resource.resourceType === \"ServiceRequest\").resource.id;\r",
                  "\r",
                  "pm.collectionVariables.set(\"serviceRequestId\", serviceRequestId);"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/ServiceRequest?_profile=https://fhir.by/StructureDefinition/ServiceRequestMedExam&_sort=-_lastUpdated&identifier=2200524",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Patient",
                "{{patientId}}",
                "ServiceRequest"
              ],
              "query": [
                {
                  "key": "_profile",
                  "value": "https://fhir.by/StructureDefinition/ServiceRequestMedExam"
                },
                {
                  "key": "_sort",
                  "value": "-_lastUpdated"
                },
                {
                  "key": "identifier",
                  "value": "2200524"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Кейс 3. Изменение статуса на stopped",
      "item": [
        {
          "name": "импорт пакета медицинской информации",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                  "    pm.response.to.have.status(202);\r",
                  "});\r",
                  "\r",
                  "var jsonData = pm.response.json();\r",
                  "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                  "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                  "\r",
                  "console.log(statusReference.valueReference.reference);\r",
                  "\r",
                  "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                  "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            },
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  "// const iehrTools = pm.require('@grey-escape-331258/iehr-tools');\r",
                  "\r",
                  "// var requestdata = JSON.parse(pm.request.body.raw);\r",
                  "// let patient = requestdata.entry.find(obj => obj.resource.resourceType === \"Patient\").resource;\r",
                  "// let composition = requestdata.entry.filter(obj => obj.resource.resourceType === \"Composition\")[0].resource;\r",
                  "\r",
                  "// let actualDate = new Date(Date.parse(composition.date.substr(0, 7)));\r",
                  "// let actualDateStart = iehrTools.addMonth(actualDate, -1);\r",
                  "// let actualDateEnd = iehrTools.addMonth(actualDate, 1);\r",
                  "\r",
                  "// pm.collectionVariables.set(\"actualDateStart\", actualDateStart.toISOString().substring(0,7));\r",
                  "// pm.collectionVariables.set(\"actualDateEnd\", actualDateEnd.toISOString().substring(0,7));\r",
                  "// pm.collectionVariables.set(\"actualDate\", actualDate.toISOString().substring(0,10));\r",
                  "// // --- Patient ----\r",
                  "// let patientName = patient.name[0].family;\r",
                  "// let patientDate = patient.birthDate;\r",
                  "// let patientAddress = patient.address[0];\r",
                  "// let patientIdentifier = patient.identifier[0];\r",
                  "\r",
                  "// console.log(pm.request.auth)\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Fhir-By-Version",
                "value": "active",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"ExampleBundleMedExamDecisionTest\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2025-12-10T14:00:00Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionMedExamDecisionTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"CompositionMedExamDecisionTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\",\r\n                            \"display\": \"Общая медицинская информация\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/PatientTest\"\r\n                    }\r\n                ],\r\n                \"date\": \"2025-12-10T14:00:00Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                    }\r\n                ],\r\n                \"title\": \"CompDocument для наполненного Bundle для направления на обязательный медицинский осмотр работающего\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"event\": [\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"CarePlan/ExampleMedExaminReportTest\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"ClinicalImpression/ExampleMedExamDecisionTest\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Encounter/EncounterTest\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisHealthy\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/ExampleObservationUSDTest\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"DiagnosticReport/ExampleDiagnosticReportObsDR\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EncounterConclusion\",\r\n                        \"valueString\": \"проведение медицинского осмотра\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EncounterTypeOfVisit\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/EncounterTypeOfVisit\",\r\n                                    \"code\": \"primary\",\r\n                                    \"display\": \"первичное обращение\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EncounterTypeOfService\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/EncounterTypeOfService\",\r\n                                    \"code\": \"free\",\r\n                                    \"display\": \"Бесплатные услуги\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"1\",\r\n                                \"display\": \"амбулаторные\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"planned\",\r\n                            \"display\": \"Плановая медицинская помощь\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"primary\",\r\n                                \"display\": \"Первичная медицинская помощь\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2025-06-10T11:12:21Z\",\r\n                    \"end\": \"2025-06-10T11:25:21Z\"\r\n                },\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/EncounterReasons\",\r\n                                        \"code\": \"medical-examination\",\r\n                                        \"display\": \"Медицинский осмотр\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisHealthy\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/ExampleDiagnosisHealthy\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"ExampleDiagnosisHealthy\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2025-06-10\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"Z00.0\",\r\n                            \"display\": \"Z00.0 - Общий медицинский осмотр\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"onsetDateTime\": \"2024-01-05\",\r\n                \"recordedDate\": \"2024-01-05\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/PatientTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"PatientTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"version\": \"1.322\",\r\n                                    \"code\": \"INP\",\r\n                                    \"display\": \"Уникальный идентификационный номер\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551123A009PB1\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Иванов\",\r\n                        \"given\": [\r\n                            \"Петр\",\r\n                            \"Сидорович\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.1\",\r\n                                                    \"code\": \"SMS\",\r\n                                                    \"display\": \"SMS\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.1\",\r\n                                                    \"code\": \"messenger-tel\",\r\n                                                    \"display\": \"Telegram\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientNotificationType\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/PatientNotificationType\",\r\n                                                    \"version\": \"1.1\",\r\n                                                    \"code\": \"e-mail\",\r\n                                                    \"display\": \"e-mail\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientConsentForNotification\",\r\n                                        \"valueBoolean\": true\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PatientAccountPoint\",\r\n                                        \"valueBoolean\": true\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PatientTelecomPurpose\"\r\n                            }\r\n                        ],\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"295748410\"\r\n                    },\r\n                    {\r\n                        \"system\": \"email\",\r\n                        \"value\": \"test_mail@gmail.by\"\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1990-12-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"version\": \"1.89\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"version\": \"1.109\",\r\n                                            \"code\": \"5170309411\",\r\n                                            \"display\": \"Улица Золотая Горка\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 29\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"г. Минск, Улица Золотая Горка\",\r\n                        \"line\": [\r\n                            \"Улица Золотая Горка\"\r\n                        ],\r\n                        \"city\": \"г. Минск\",\r\n                        \"state\": \"г. Минск\",\r\n                        \"country\": \"Беларусь\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"version\": \"1.89\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"version\": \"1.109\",\r\n                                            \"code\": \"51703019678\",\r\n                                            \"display\": \"Проспект Рокоссовского\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 2\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"г. Минск, Проспект Рокоссовского\",\r\n                        \"line\": [\r\n                            \"Проспект Рокоссовского\"\r\n                        ],\r\n                        \"city\": \"г. Минск\",\r\n                        \"state\": \"г. Минск\",\r\n                        \"country\": \"Беларусь\"\r\n                    }\r\n                ],\r\n                \"maritalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/MaritalStatus\",\r\n                            \"version\": \"1.1\",\r\n                            \"code\": \"married\",\r\n                            \"display\": \"женат/замужем\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"contact\": [\r\n                    {\r\n                        \"relationship\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/RelatedPersonType\",\r\n                                        \"version\": \"1.78\",\r\n                                        \"code\": \"wife\",\r\n                                        \"display\": \"супруга\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ],\r\n                        \"name\": {\r\n                            \"family\": \"Иванова\",\r\n                            \"given\": [\r\n                                \"Лариса\",\r\n                                \"Ивановна\"\r\n                            ]\r\n                        },\r\n                        \"telecom\": [\r\n                            {\r\n                                \"system\": \"phone\",\r\n                                \"value\": \"802990990908\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"generalPractitioner\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\",\r\n                        \"identifier\": {\r\n                            \"value\": \"123156789012\",\r\n                            \"period\": {\r\n                                \"start\": \"2002-12-11\"\r\n                            }\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"CarePlan/ExampleMedExaminReportTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"CarePlan\",\r\n                \"id\": \"ExampleMedExaminReportTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/MedExaminReport\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HarmfulFactors\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/HarmfulFactors\",\r\n                                            \"code\": \"1.1.1\",\r\n                                            \"display\": \"азота неорганические соединения (аммиак, азотная кислота и другие)\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TypesOfWork\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/TypesOfWork\",\r\n                                            \"code\": \"6\",\r\n                                            \"display\": \"Работы в нефтяной и газовой промышленности, производство геолого-разведческих и топографо-геодезических работ\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/FactorsAndTypesOfWork\"\r\n                    }\r\n                ],\r\n                \"status\": \"completed\",\r\n                \"intent\": \"plan\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/MedicalExaminationEmployees\",\r\n                                \"code\": \"mandatory-periodic\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"title\": \"Протокол медицинского осмотра (предварительного, периодического или внеочередного) работающих\",\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"encounter\": {\r\n                    \"reference\": \"Encounter/EncounterTest\"\r\n                },\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"contributor\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"addresses\": [\r\n                    {\r\n                        \"reference\": {\r\n                            \"reference\": \"Condition/ExampleDiagnosisHealthy\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"supportingInfo\": [\r\n                    {\r\n                        \"reference\": \"ClinicalImpression/ExampleMedExamDecisionTest\"\r\n                    }\r\n                ],\r\n                \"activity\": [\r\n                    {\r\n                        \"performedActivity\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"DiagnosticReport/ExampleDiagnosticReportObsDR\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"ClinicalImpression/ExampleMedExamDecisionTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"ClinicalImpression\",\r\n                \"id\": \"ExampleMedExamDecisionTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/MedicalExaminDecision\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/MedicalExaminationEmployees\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicalExaminationEmployees\",\r\n                                    \"code\": \"mandatory-preliminary\",\r\n                                    \"display\": \"обязательный предварительный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"237777\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"previous\": {\r\n                    \"reference\": \"ClinicalImpression/{{clinicalImpressionId}}\"\r\n                },\r\n                \"status\": \"completed\",\r\n                \"description\": \"Решение комиссии о состоянии здоровья при проведении обязательного периодического осмотра Иванова Ивана, 31.12.1990 года рождения\",\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2026-08-10\",\r\n                \"date\": \"2026-08-10\",\r\n                \"performer\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                },\r\n                \"finding\": [\r\n                    {\r\n                        \"item\": {\r\n                            \"extension\": [\r\n                                {\r\n                                    \"extension\": [\r\n                                        {\r\n                                            \"url\": \"https://fhir.by/StructureDefinition/HarmfulFactors\",\r\n                                            \"valueCodeableConcept\": {\r\n                                                \"coding\": [\r\n                                                    {\r\n                                                        \"system\": \"https://fhir.by/ValueSet/HarmfulFactors\",\r\n                                                        \"code\": \"1.1.39\",\r\n                                                        \"display\": \"амино- и нитросоединения алифатических, ациклических углеводородов и их производные (метиламин, этиленимин, гексаметилендиамин, циклогексиламин и другие)\"\r\n                                                    }\r\n                                                ]\r\n                                            }\r\n                                        }\r\n                                    ],\r\n                                    \"url\": \"https://fhir.by/StructureDefinition/FactorsAndTypesOfWork\"\r\n                                }\r\n                            ],\r\n                            \"concept\": {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/MedicalExaminationDecision\",\r\n                                        \"code\": \"fit\",\r\n                                        \"display\": \"Годен к работе\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"item\": {\r\n                            \"extension\": [\r\n                                {\r\n                                    \"extension\": [\r\n                                        {\r\n                                            \"url\": \"https://fhir.by/StructureDefinition/HarmfulFactors\",\r\n                                            \"valueCodeableConcept\": {\r\n                                                \"coding\": [\r\n                                                    {\r\n                                                        \"system\": \"https://fhir.by/ValueSet/HarmfulFactors\",\r\n                                                        \"code\": \"1.1.32\",\r\n                                                        \"display\": \"амино- и нитросоединения ароматических углеводородов и их производные: аминобензол (анилин) (К), м-, п-толуидин, N-метиламинобензол (метил-аланин), аминонитро-бензолы; нитрохлорбензолы, нитро-, аминофенолы, 2-метил-1,3,5-тринитробензол (тринитротолуол), диамино-бензолы (фенилендиамины), 1-амино-3-хлорбензолол, 1-амино-4-хлорбензол (хлоранилины), аминодиметилбензол (ксилидин), анизидины, бензидин (К), нафтиламины\"\r\n                                                    }\r\n                                                ]\r\n                                            }\r\n                                        }\r\n                                    ],\r\n                                    \"url\": \"https://fhir.by/StructureDefinition/FactorsAndTypesOfWork\"\r\n                                }\r\n                            ],\r\n                            \"concept\": {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/MedicalExaminationDecision\",\r\n                                        \"code\": \"fit\",\r\n                                        \"display\": \"Годен к работе\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"DiagnosticReport/ExampleDiagnosticReportObsDR\",\r\n            \"resource\": {\r\n                \"resourceType\": \"DiagnosticReport\",\r\n                \"id\": \"ExampleDiagnosticReportObsDR\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/UltrasoundDiagnosticReport\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/LocationReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Location/{{LocationId}}\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ExaminationPriority\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/ExaminationPriority\",\r\n                                    \"code\": \"routine\",\r\n                                    \"display\": \"планово\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"43664362\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/HealthcareServiceCategory\",\r\n                                \"code\": \"06/1-add\",\r\n                                \"display\": \"Медицинская экспертиза, освидетельствования и осмотры взрослого населения\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/UltrasoundTypes\",\r\n                            \"code\": \"A04-28-001\",\r\n                            \"display\": \"УЗИ почек\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"encounter\": {\r\n                    \"reference\": \"Encounter/EncounterTest\"\r\n                },\r\n                \"effectivePeriod\": {\r\n                    \"start\": \"2025-05-12T12:05:00Z\",\r\n                    \"end\": \"2025-05-12T12:15:00Z\"\r\n                },\r\n                \"issued\": \"2025-05-12T12:30:00Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\"\r\n                    }\r\n                ],\r\n                \"resultsInterpreter\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"result\": [\r\n                    {\r\n                        \"reference\": \"Observation/ExampleObservationUSDTest\"\r\n                    }\r\n                ],\r\n                \"conclusion\": \"норма\"\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/ExampleObservationUSDTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"ExampleObservationUSDTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ObservationUltrasound\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/LocationReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Location/{{LocationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"43664362\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/HealthcareServiceCategory\",\r\n                                \"code\": \"06/1-add\",\r\n                                \"display\": \"Медицинская экспертиза, освидетельствования и осмотры взрослого населения\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/UltrasoundTypes\",\r\n                            \"code\": \"A04-28-001\",\r\n                            \"display\": \"УЗИ почек\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"encounter\": {\r\n                    \"reference\": \"Encounter/EncounterTest\"\r\n                },\r\n                \"effectivePeriod\": {\r\n                    \"start\": \"2025-05-12T12:05:00Z\",\r\n                    \"end\": \"2025-05-12T12:15:00Z\"\r\n                },\r\n                \"issued\": \"2025-05-12T12:20:00Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformerTypeObservation\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/PerformerType\",\r\n                                            \"code\": \"organization-per\",\r\n                                            \"display\": \"организация\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"reference\": \"Organization/{{OrganizationId}}\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformerTypeObservation\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/PerformerType\",\r\n                                            \"code\": \"practitionerRole-per\",\r\n                                            \"display\": \"роль медработника\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"component\": [\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-location\",\r\n                                    \"display\": \"Расположение правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Обычное\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-borders\",\r\n                                    \"display\": \"Контуры правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Ровные, четкие\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-length\",\r\n                                    \"display\": \"Длина правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 105,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-thickness\",\r\n                                    \"display\": \"Толщина правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 45,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-width\",\r\n                                    \"display\": \"Ширина правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 52,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-parenchyma-width\",\r\n                                    \"display\": \"Толщина паренхимы правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 18,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-parenchyma-echogenicity\",\r\n                                    \"display\": \"Эхогенность паренхимы правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltraSoundQualitativeParameters\",\r\n                                    \"code\": \"normal\",\r\n                                    \"display\": \"Норма\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-parenchyma-structure\",\r\n                                    \"display\": \"Структура паренхимы правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltraSoundQualitativeParameters\",\r\n                                    \"code\": \"homogeneous\",\r\n                                    \"display\": \"Однородная\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-pelvicalyceal-system\",\r\n                                    \"display\": \"Чашечно-лоханочная система правой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Не расширена\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-lesions\",\r\n                                    \"display\": \"Очаговые образования (правая почка)\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueBoolean\": false\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-R-stones\",\r\n                                    \"display\": \"Конкременты (правая почка)\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueBoolean\": false\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-location\",\r\n                                    \"display\": \"Расположение левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Обычное\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-borders\",\r\n                                    \"display\": \"Контуры левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Ровные, четкие\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-length\",\r\n                                    \"display\": \"Длина левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 108,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-width\",\r\n                                    \"display\": \"Толщина левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 42,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-width\",\r\n                                    \"display\": \"Ширина левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 49,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-parenchyma-width\",\r\n                                    \"display\": \"Толщина паренхимы левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 22,\r\n                            \"unit\": \"мм\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-parenchyma-echogenicity\",\r\n                                    \"display\": \"Эхогенность паренхимы левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltraSoundQualitativeParameters\",\r\n                                    \"code\": \"normal\",\r\n                                    \"display\": \"Норма\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-parenchyma-structure\",\r\n                                    \"display\": \"Структура паренхимы левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltraSoundQualitativeParameters\",\r\n                                    \"code\": \"homogeneous\",\r\n                                    \"display\": \"Однородная\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-pelvicalyceal-system\",\r\n                                    \"display\": \"Чашечно-лоханочная система левой почки\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"Не расширена\"\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-lesions\",\r\n                                    \"display\": \"Очаговые образования (левая почка)\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueBoolean\": false\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"kidney-L-stones\",\r\n                                    \"display\": \"Конкременты (левая почка)\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueBoolean\": false\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/UltrasoundParametres\",\r\n                                    \"code\": \"additional-info\",\r\n                                    \"display\": \"Дополнительная информация\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueString\": \"норма\"\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "$import"
              ]
            }
          },
          "response": []
        },
        {
          "name": "получение статуса импорта пакета медицинской информации",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "{{bundleId}}",
                "$status"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Метод проверки наличия решений комиссии о состоянии здоровья работающего",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = pm.response.json();\r",
                  "let clinicalImpressionId = jsonData.entry.find(obj => obj.resource.resourceType === \"ClinicalImpression\").resource.id;\r",
                  "\r",
                  "pm.collectionVariables.set(\"clinicalImpressionId\", clinicalImpressionId);\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/ClinicalImpression?_profile=https://fhir.by/StructureDefinition/MedicalExaminDecision&_sort=-_lastUpdated",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Patient",
                "{{patientId}}",
                "ClinicalImpression"
              ],
              "query": [
                {
                  "key": "_profile",
                  "value": "https://fhir.by/StructureDefinition/MedicalExaminDecision"
                },
                {
                  "key": "_sort",
                  "value": "-_lastUpdated"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Метод проверки наличия протоколов медицинского осмотра",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = pm.response.json();\r",
                  "let carePlanId = jsonData.entry.find(obj => obj.resource.resourceType === \"CarePlan\").resource.id;\r",
                  "\r",
                  "pm.collectionVariables.set(\"carePlanId\", carePlanId);\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{patientId}}/CarePlan?_profile=https://fhir.by/StructureDefinition/MedExaminReport&_sort=-_lastUpdated",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Patient",
                "{{patientId}}",
                "CarePlan"
              ],
              "query": [
                {
                  "key": "_profile",
                  "value": "https://fhir.by/StructureDefinition/MedExaminReport"
                },
                {
                  "key": "_sort",
                  "value": "-_lastUpdated"
                }
              ]
            }
          },
          "response": []
        }
      ]
    }
  ],
  "auth": {
    "type": "oauth2",
    "oauth2": [
      {
        "key": "client_authentication",
        "value": "body",
        "type": "string"
      },
      {
        "key": "tokenRequestParams",
        "value": [
          {
            "key": "origin",
            "value": "https://oauth.pstmn.io/v1/callback",
            "enabled": true,
            "send_as": "request_header"
          }
        ],
        "type": "any"
      },
      {
        "key": "clientId",
        "value": "iehr.swagger.client",
        "type": "string"
      },
      {
        "key": "accessTokenUrl",
        "value": "https://staging.cisz.by/auth/api/realms/iehr/token",
        "type": "string"
      },
      {
        "key": "authUrl",
        "value": "https://staging.cisz.by/auth/api/realms/iehr/auth",
        "type": "string"
      },
      {
        "key": "redirect_uri",
        "value": "https://oauth.pstmn.io/v1/callback",
        "type": "string"
      },
      {
        "key": "grant_type",
        "value": "authorization_code_with_pkce",
        "type": "string"
      },
      {
        "key": "tokenName",
        "value": "token",
        "type": "string"
      },
      {
        "key": "addTokenTo",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "bundleId",
      "value": ""
    },
    {
      "key": "StatusUrl",
      "value": ""
    },
    {
      "key": "patientId",
      "value": ""
    },
    {
      "key": "serviceRequestId",
      "value": ""
    },
    {
      "key": "clinicalImpressionId",
      "value": ""
    },
    {
      "key": "carePlanId",
      "value": ""
    }
  ]
}